<template>
  <div class="container">
    <YeChat ref="YeChatRef"></YeChat>
  </div>
</template>

<script setup lang="ts">
import YeChat from "@/packagePages/chatIm/components/YeChat.vue";
import { nextTick } from "../../uni_modules/zebra-swiper/shared/utils";
const instance = getCurrentInstance();

let userId;

onLoad((e) => {
  userId = e.userId;
});

onShow(() => {
  nextTick(() => {
    instance.refs.YeChatRef.loadData(userId);
  });
});

onHide(() => {
  instance.refs.YeChatRef.close();
});

onUnload(() => {});
</script>



<style lang="scss" scoped>
.container {
}
</style>






